﻿namespace PowerHub.MES.Jwt
{
    /// <summary>
    /// 令牌
    /// </summary>
    public class TokenModel
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Uid { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName;

        /// <summary>
        /// 角色
        /// </summary>
        public string Role = "Admin";

        public TokenModel()
        {
        }
        public TokenModel(string uid, string userName, string role)
        {
            Uid = uid;
            Role = role;
            UserName = userName;
        }
    }
}
